package com.cdh.cms.feign;

import com.cdh.cms.feign.fallback.OssFileServiceFallBack;
import com.cdh.utils.result.Restful;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author by cdh
 * @description:
 * @Date: Created in 16:28 on 2021/3/1
 */
@Service
@FeignClient(value = "service-oss",fallback = OssFileServiceFallBack.class)
public interface OssFileService {

    /**
     * 删除上传的文件
     * @param url
     * @return
     */
    @DeleteMapping("ossService/remove")
    Restful removeFileAvatar(@RequestBody String url);
}
